/**
 * @author gao
 * @date 2025/6/3 22:21
 */

public class Solution {
    public static void main(String[] args) {
        double d1 = 10.12345;
        //保留3位小数
        System.out.println(String.format("%.3f", d1));
    }
}